<?php
$inc_lib = realpath(dirname(__FILE__) . '/../../teia.lib/inc/inc_core.inc');
require_once $inc_lib;
use teia\webdev\php\core as teia;

$inc_cust = realpath(dirname(__FILE__) . '/../inc/inc_cust.inc');
require_once $inc_cust;
use teia\webdev\php\cust as cust;

$result = teia\SessionWrapper::start();
if (!$result) {
	echo "Session Error: Failed to start session\n";
	exit(-1);
}
if (!isset($started)) {
	$purchase_process = new teia\PurchaseProcess();
	$process_viewer = new teia\ProcessViewer('id_process_viewer', 'process_viewer', null, $purchase_process);
	$started = true;
}

?>

<!DOCTYPE html>
<html>
	<head>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
		<title>Shoes Boutique: Compra</title>
		<link href="/style/layout.css" rel="stylesheet" type="text/css">
		<link href="/style/style01.css" rel="stylesheet" type="text/css">
		<link href="/style/style_slideshow.css" rel="stylesheet" type="text/css">
		<?php teia\FunctionPool::include_jquery(); ?>
		<style type="text/css">
			.auto-style1 {
				margin-left: 0;
			}
		</style>
	</head>
	<body>
		<div align="center" style="position: absolute; margin-left: inherit; margin-right: inherit">
			<!-- Display header logo -->
			<?php cust\CustFunctions::display_header_logo(); ?>
			<!-- Display top navigation -->
			<?php cust\CustFunctions::display_top_nav(array('show_search' => false)); ?>
			<!-- Display menu -->	
			<?php //cust\CustFunctions::display_menu(); ?>
			<div id="container">  
    			<?php //cust\CustFunctions::display_top_banner(); ?>
    			<?php $process_viewer->display(); ?>
			</div>
			<?php //cust\CustFunctions::display_footer(); ?>
		</div>
	</body>
</html>
